package com.vdimitr.katapotter;

import java.util.Comparator;

/**
 * 
 * @author vasileios.dimitriadis
 *
 */
public class CandidateBucketTotalPriceComparator implements Comparator<CandidateBucket> {

	@Override
	public int compare(CandidateBucket o1, CandidateBucket o2) {
		return Double.valueOf(o1.getTotalPrice()).compareTo(Double.valueOf(o2.getTotalPrice()));
	}

}
